import yaml

def get_config(key):
    if key is None or key == '':
        raise Exception('key is None')

    with open('./configs.yml', 'r', encoding='utf-8') as f:
        result = yaml.load(f.read(), Loader=yaml.FullLoader)

    return result[key]